package biz.obake.team.touchprotector.d;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public final class c {

    /* renamed from: a  reason: collision with root package name */
    private static a f1554a;

    private static final class a extends ArrayList<a> {
        /* renamed from: a */
        public boolean add(a aVar) {
            if (aVar == null) {
                return false;
            }
            return super.add(aVar);
        }

        public /* bridge */ boolean b(a aVar) {
            return super.contains(aVar);
        }

        public /* bridge */ int c() {
            return super.size();
        }

        public final /* bridge */ boolean contains(Object obj) {
            if (obj != null ? obj instanceof a : true) {
                return b((a) obj);
            }
            return false;
        }

        public /* bridge */ int d(a aVar) {
            return super.indexOf(aVar);
        }

        public /* bridge */ int e(a aVar) {
            return super.lastIndexOf(aVar);
        }

        public /* bridge */ boolean f(a aVar) {
            return super.remove(aVar);
        }

        public final /* bridge */ int indexOf(Object obj) {
            if (obj != null ? obj instanceof a : true) {
                return d((a) obj);
            }
            return -1;
        }

        public final /* bridge */ int lastIndexOf(Object obj) {
            if (obj != null ? obj instanceof a : true) {
                return e((a) obj);
            }
            return -1;
        }

        public final /* bridge */ boolean remove(Object obj) {
            if (obj != null ? obj instanceof a : true) {
                return f((a) obj);
            }
            return false;
        }

        public final /* bridge */ int size() {
            return c();
        }
    }

    public interface b {
        void a(List<String> list);
    }

    public static final void a() {
        a aVar = new a();
        f1554a = aVar;
        if (aVar != null) {
            aVar.add(biz.obake.team.touchprotector.log.a.b());
            a aVar2 = f1554a;
            if (aVar2 != null) {
                aVar2.add(biz.obake.team.touchprotector.donation.a.q());
                a aVar3 = f1554a;
                if (aVar3 != null) {
                    aVar3.add(biz.obake.team.touchprotector.d.d.a.g.a());
                    a aVar4 = f1554a;
                    if (aVar4 != null) {
                        aVar4.add(new biz.obake.team.touchprotector.features.shake.b());
                        a aVar5 = f1554a;
                        if (aVar5 != null) {
                            aVar5.add(new biz.obake.team.touchprotector.features.shake.a());
                            a aVar6 = f1554a;
                            if (aVar6 != null) {
                                aVar6.add(new biz.obake.team.touchprotector.features.proximity.b());
                                a aVar7 = f1554a;
                                if (aVar7 != null) {
                                    aVar7.add(new biz.obake.team.touchprotector.features.proximity.a());
                                    a aVar8 = f1554a;
                                    if (aVar8 != null) {
                                        aVar8.add(new biz.obake.team.touchprotector.features.proximity.c());
                                        a aVar9 = f1554a;
                                        if (aVar9 != null) {
                                            aVar9.add(new biz.obake.team.touchprotector.features.upsidedown.b());
                                            a aVar10 = f1554a;
                                            if (aVar10 != null) {
                                                aVar10.add(new biz.obake.team.touchprotector.features.upsidedown.a());
                                                a aVar11 = f1554a;
                                                if (aVar11 != null) {
                                                    aVar11.add(new biz.obake.team.touchprotector.d.e.a());
                                                    a aVar12 = f1554a;
                                                    if (aVar12 != null) {
                                                        aVar12.add(new biz.obake.team.touchprotector.d.i.b());
                                                        a aVar13 = f1554a;
                                                        if (aVar13 != null) {
                                                            aVar13.add(new biz.obake.team.touchprotector.d.i.a());
                                                            a aVar14 = f1554a;
                                                            if (aVar14 != null) {
                                                                aVar14.add(new biz.obake.team.touchprotector.d.g.b());
                                                                a aVar15 = f1554a;
                                                                if (aVar15 != null) {
                                                                    aVar15.add(new biz.obake.team.touchprotector.d.g.a());
                                                                    a aVar16 = f1554a;
                                                                    if (aVar16 != null) {
                                                                        aVar16.add(new biz.obake.team.touchprotector.d.h.b());
                                                                        a aVar17 = f1554a;
                                                                        if (aVar17 != null) {
                                                                            aVar17.add(new biz.obake.team.touchprotector.d.h.a());
                                                                            a aVar18 = f1554a;
                                                                            if (aVar18 != null) {
                                                                                aVar18.add(new biz.obake.team.touchprotector.features.tasker.b());
                                                                                a aVar19 = f1554a;
                                                                                if (aVar19 != null) {
                                                                                    aVar19.add(new biz.obake.team.touchprotector.d.f.a());
                                                                                    int i = 0;
                                                                                    a aVar20 = f1554a;
                                                                                    if (aVar20 != null) {
                                                                                        int size = aVar20.size();
                                                                                        while (i < size) {
                                                                                            a aVar21 = f1554a;
                                                                                            if (aVar21 != null) {
                                                                                                Object obj = aVar21.get(i);
                                                                                                if (obj != null) {
                                                                                                    ((a) obj).start();
                                                                                                    i++;
                                                                                                } else {
                                                                                                    d.h.b.c.f();
                                                                                                    throw null;
                                                                                                }
                                                                                            } else {
                                                                                                d.h.b.c.f();
                                                                                                throw null;
                                                                                            }
                                                                                        }
                                                                                        return;
                                                                                    }
                                                                                    d.h.b.c.f();
                                                                                    throw null;
                                                                                }
                                                                                d.h.b.c.f();
                                                                                throw null;
                                                                            }
                                                                            d.h.b.c.f();
                                                                            throw null;
                                                                        }
                                                                        d.h.b.c.f();
                                                                        throw null;
                                                                    }
                                                                    d.h.b.c.f();
                                                                    throw null;
                                                                }
                                                                d.h.b.c.f();
                                                                throw null;
                                                            }
                                                            d.h.b.c.f();
                                                            throw null;
                                                        }
                                                        d.h.b.c.f();
                                                        throw null;
                                                    }
                                                    d.h.b.c.f();
                                                    throw null;
                                                }
                                                d.h.b.c.f();
                                                throw null;
                                            }
                                            d.h.b.c.f();
                                            throw null;
                                        }
                                        d.h.b.c.f();
                                        throw null;
                                    }
                                    d.h.b.c.f();
                                    throw null;
                                }
                                d.h.b.c.f();
                                throw null;
                            }
                            d.h.b.c.f();
                            throw null;
                        }
                        d.h.b.c.f();
                        throw null;
                    }
                    d.h.b.c.f();
                    throw null;
                }
                d.h.b.c.f();
                throw null;
            }
            d.h.b.c.f();
            throw null;
        }
        d.h.b.c.f();
        throw null;
    }

    public static final void b() {
        a aVar = f1554a;
        if (aVar != null) {
            int size = aVar.size();
            while (true) {
                size--;
                if (size >= 0) {
                    a aVar2 = f1554a;
                    if (aVar2 != null) {
                        Object obj = aVar2.get(size);
                        if (obj != null) {
                            ((a) obj).stop();
                        } else {
                            d.h.b.c.f();
                            throw null;
                        }
                    } else {
                        d.h.b.c.f();
                        throw null;
                    }
                } else {
                    return;
                }
            }
        } else {
            d.h.b.c.f();
            throw null;
        }
    }

    public static final String c() {
        if (f1554a != null) {
            ArrayList<String> arrayList = new ArrayList<>();
            a aVar = f1554a;
            if (aVar != null) {
                Iterator it = aVar.iterator();
                while (it.hasNext()) {
                    a aVar2 = (a) it.next();
                    if (aVar2 instanceof b) {
                        ((b) aVar2).a(arrayList);
                    }
                }
                StringBuffer stringBuffer = new StringBuffer();
                for (String append : arrayList) {
                    stringBuffer.append(append);
                    stringBuffer.append("\n");
                }
                String stringBuffer2 = stringBuffer.toString();
                d.h.b.c.b(stringBuffer2, "sb.toString()");
                return stringBuffer2;
            }
            d.h.b.c.f();
            throw null;
        }
        throw new biz.obake.team.touchprotector.g.b("{112D2FEC-FF68-4918-BE3D-53646238C63A}");
    }
}
